<template>
  <div>
    <el-option :value="item" v-for="item,index in optionsData" :key="index" ></el-option>
  </div>
</template>
<script>
import EventBus from './EventBus'
export default {
  name:'LazyOption',
  data () {
    return {
      optionsData : []
    }
  },
  methods: {},
  created () {
    EventBus.$on('push',(pushData)=>{
      this.optionsData.push(...pushData)
    }),
    EventBus.$on('reset',(fliterData)=>{
      this.optionsData = fliterData
    })
  }
}
</script>

<style lang='less' scoped>

</style>
